package com.eshin.autotest.service;

import com.eshin.autotest.bean.OrderBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @author Eshin
 * @title: HelloService
 * @projectName pay
 * @date 2019/5/2710:58
 */

@Component
@Lazy
public class LazyTestService implements IService{

    @PostConstruct
    public void init(){
        System.out.println("test LazyTestService init...");
    }

    OrderBean orderBean;

    @Resource
    HelloService helloService;
//    @Autowired
    public LazyTestService(OrderBean orderBean) {
        this.orderBean = orderBean;
    }



    public void doService(){
        System.out.println("test LazyTestService");
    }
}
